﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using bll;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_Login_Click(object sender, EventArgs e)
        {
            if (userbll.Login(txt_UserName.Text, txt_Password.Text) != null)
            {
                ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('登录成功！')</script>");
            }
            else
            {
                ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('登录失败！')</script>");
            }
        }
    }
}